package com.zjitc;

import java.text.DecimalFormat;
import java.util.UUID;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/12 17:00
 * @description:
 */
public class Unit {

  public static String getUUid(){
    String uuid = UUID.randomUUID().toString().replaceAll("-", "");
    return uuid;
  }

  public static Double getprice(){
    double d1 = Math.random() * 100;
    DecimalFormat df = new DecimalFormat("#.00");
    double price = Double.parseDouble(df.format(d1));
    return price;
  }

}
